<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>使用drop-shadow改变图片颜色</title>
  <style>
    .logo-box {
      width: 200px;
      height: 200px;
      border-radius: 10px;
      background-color: aliceblue;
      overflow: hidden;
      text-align: center;
      line-height: 200px;
    }

    .logo {
      width: 60px;
      height: 60px;
    }

    .logo:hover {
      filter: drop-shadow(1000px 0 0 #1296db);
      transform: translateX(-1000px);
    }
  </style>
</head>
<body>
  <div class="logo-box">
    <img src="../assets/images/smile.png" alt="" class="logo">
  </div>
</body>
</html>